﻿using ERP.Common.Results;
using ERP.GRX.Permission.DTO;
using ERP.Team.RBAC.GRX;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.GRX
{
    /// <summary>
    /// 权限接口
    /// </summary>
    public interface IPermissionService:IApplicationService
    {
        /// <summary>
        /// 添加权限
        /// </summary>
        /// <param name="permissionModel"></param>
        Task<int> AddPermission(PermissionDTO permissionDTO);
        /// <summary>
        /// 权限显示
        /// </summary>
        /// <returns></returns>
       Task<List<PermissionTreeDTO>> GetTreePermission(int ParentId);
        /// <summary>
        /// 权限树反填
        /// </summary>
        /// <returns></returns>
        Task<PermissionDTO> fantianpermission(int id);

    }
}
